package com.sixiaojie.flink.domain;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Entity
public class Payment {
    /** 支付ID */
    @Id
    private String id;

    /** 订单ID */
    private String orderId;

    /** 用户ID */
    private Long userId;

    /** 支付金额 */
    private BigDecimal amount;

    /** 支付状态：PENDING,SUCCESS,FAILED,REFUNDED */
    private String status;

    /** 支付方式 */
    private String paymentMethod;

    /** 交易时间 */
    private Date transactionTime = new Date();

    /** 最后更新时间 */
    private Date lastUpdated = new Date();
}